<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('发帖人昵称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" value="{$user['username']}" readonly class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('发帖人手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" value="{$user['tel']}" readonly class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cate_id" data-source="carcategory/index" class="form-control selectpage" type="text" name="row[cate_id]" value="{$row.cate_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('车辆类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-vehicle_id" data-source="vehicle/index" class="form-control selectpage" type="text" name="row[vehicle_id]" value="{$row.vehicle_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('省')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_id" readonly disabled  class="form-control"  type="text" value="{$row.province|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('市')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_id" readonly disabled  class="form-control"  type="text" value="{$row.city|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('区')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area_id" readonly disabled class="form-control"  type="text" value="{$row.area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" type="text" name="row[title]" value="{$row.title|htmlentities}">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
             <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image">
                <li class="col-xs-3"><a href="{$row.image|htmlentities}" data-url="{$row.image|htmlentities}" target="_blank" class="thumbnail"><img src="{$row.image|htmlentities}" onerror="this.src='{$row.image|htmlentities}';this.onerror=null;" class="img-responsive"></a></li>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" rows="5"  cols="50" name="row[content]">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content_images')}:</label>
        <div class="col-xs-12 col-sm-8">
             <div class="input-group">
                <input id="c-content_images" class="form-control" size="50" name="row[content_images]" type="textarea" value="{$row.content_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-content_images" class="btn btn-danger faupload" data-input-id="c-content_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-content_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-content_images" class="btn btn-primary fachoose" data-input-id="c-content_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-content_images"></span>
            </div>
            <!--<ul class="row list-inline faupload-preview" id="p-content_images"></ul> -->
            <ul class="row list-inline faupload-preview" id="p-content_images">
                {volist name="$row['imagelist']" id="imagelist"}
                <li class="col-xs-3"><a href="{$imagelist|htmlentities}" data-url="{$imagelist|htmlentities}" target="_blank" class="thumbnail"><img src="{$imagelist|htmlentities}" onerror="this.src='{$imagelist|htmlentities}';this.onerror=null;" class="img-responsive"></a></li>
                {/volist}
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" readonly disabled class="form-control"  type="text" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Base_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-base_price" readonly disabled class="form-control"  type="text" value="{$row.base_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否首页置顶')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  readonly disabled class="form-control"  type="text" value="{$row['index_topstr']}">
        </div>
    </div>
    {if condition="$row['is_top_index'] eq 1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Index_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-index_top" readonly disabled class="form-control"  type="number" value="{$row.index_top|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Index_top_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-index_top_time" readonly disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:$row.index_top_time?datetime($row.index_top_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Index_top_endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-index_top_endtime" readonly disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:$row.index_top_endtime?datetime($row.index_top_endtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Index_top_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-index_top_price" readonly disabled class="form-control" step="0.01"  type="number" value="{$row.index_top_price|htmlentities}">
        </div>
    </div>
    
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否分类置顶')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input readonly disabled class="form-control"  type="text" value="{$row['cate_topstr']}">
        </div>
    </div>
    {if condition="$row['is_top_cate'] eq 1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cate_top" readonly disabled class="form-control"  type="number" value="{$row.cate_top|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_top_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cate_top_time" readonly disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:$row.cate_top_time?datetime($row.cate_top_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_top_endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cate_top_endtime" readonly disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:$row.cate_top_endtime?datetime($row.cate_top_endtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cate_top_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cate_top_price" readonly disabled class="form-control" step="0.01"  type="number" value="{$row.cate_top_price|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Issale')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-issale" class="form-control selectpicker" readonly disabled>
                {foreach name="issaleList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.issale"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isshow')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-isshow" class="form-control selectpicker" name="row[isshow]">
                {foreach name="isshowList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.isshow"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isshow_pt')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-isshow_pt" class="form-control selectpicker" name="row[isshow_pt]">
                {foreach name="isshowPtList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.isshow_pt"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" id="pt_reason" {if condition="$row['isshow_pt'] neq '2'"} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('Pt_reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pt_reason" class="form-control" name="row[pt_reason]" type="text" value="{$row.pt_reason|htmlentities}">
        </div>
    </div>
    <div class="form-group" {if condition="$row['isshow_pt'] neq '2'"} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('Pt_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pt_time" readonly disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:$row.pt_time?datetime($row.pt_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('View')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-view" class="form-control" name="row[view]" type="number" value="{$row.view|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Collect_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-collect_count" class="form-control"  type="number" name="row[collect_count]" value="{$row.collect_count|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Add_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-add_time" readonly disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:$row.add_time?datetime($row.add_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('发布审核状态')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <!-- <select  id="c-authen" class="form-control selectpicker" readonly disabled name="row[authen]">
                {foreach name="authenList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.authen"}selected{/in}>{$vo}</option>
                {/foreach}
            </select> -->
  
            <input class="form-control" readonly disabled type="text"
             {if condition="$row['authen'] eq '1'"} value="审核中" {/if} 
             {if condition="$row['authen'] eq '2'"} value="已通过" {/if}
             {if condition="$row['authen'] eq '3'"} value="未通过" {/if}>
        </div>
    </div>
    {if condition="$row['authen'] eq '1'"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择审核状态')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-authen" class="form-control selectpicker" name="row[authen]">
                
                <option value="2">通过</option>
                <option value="3">拒绝</option>
            </select>

        </div>
    </div>
    {/if}
    
    
    <div class="form-group" id="reason" {if condition="$row['authen'] neq '3'"} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('Reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reason" class="form-control" name="row[reason]" type="text" value="{$row.reason|htmlentities}" autocomplete="off">
            <div style="height:110px;">
                <div id="reason_input_select" class="input_select" style="display: none;">
                    <ul>
                        {volist name="reason_list" id="rv"}
                        <li class="reason_input_select_li">{$rv.reason}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <style type="text/css">
        .input_select{
            width: 100%;
            max-height: 100px;
            overflow-y: auto;
            margin-top: 10px;
            background-color: #ffffff;
            box-shadow: 2px 2px 10px 0px #f1f1f1;
        }
        .input_select ul{
            width: 100%;
            padding: 0;
            margin: 0;
        }
        .input_select ul li{
            width: 100%;
            padding: 5px;
            font-size: 15px;
            color: #000000;
            list-style-type: none;
            cursor: pointer;
        }
        .input_select ul li:hover{
            color: #217EFE;
            background-color: rgba(225,227,233,0.8);
        }
    </style>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
